<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
     div{
      animation: 3s linear 1s infinite   home;
      width: 100px;
      height: 100px;
      background-color: aqua;
     }
     @keyframes home{
       25%{
        transform: translate(0,120px);
      }
      100%{
        transform: translate(120px,120px);
      }
     }
  </style>
</head>
<body>
  <div></div>
</body>
</html>